package cn.edu.xmu.orderpayment.order.microservice.retvo;
import cn.edu.xmu.orderpayment.order.model.enums.CouponState;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;

/**
 * @author YuJie
 * @date 2021-12-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponRetVoForPayment {
    private Long id;
    private String couponSn;
    private String name;
    private Long customerId;
    private Long activityId;
    @DateTimeFormat(pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    private ZonedDateTime beginTime;
    @DateTimeFormat(pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSXXX")
    private ZonedDateTime endTime;
    private Byte state;


}
